package server;

import java.util.ArrayList;

import server.dao.UserDAO;
import server.jdbcdao.UserJdbcDAO;

public class Login {
	private String	username;
	private String	password;

	public Login(ArrayList<String> parameterList) {
		username = parameterList.get(0).toString();
		password = parameterList.get(1).toString();
		System.out.println(username + ": " + password);
	}

	public boolean checkUser() {
		UserDAO userDao = new UserJdbcDAO();
		if (userDao.checkUser(username, password).equals("true"))
			return true;
		return false;
	}
}
